<template>
  <el-form>
    <el-form-item label="姓名" label-width="80px">
      <el-input v-model.trim="user.name" />
    </el-form-item>
    <el-form-item label="手机号码" label-width="80px">
      <el-input v-model.trim="user.email" />
    </el-form-item>
    <el-form-item label="电子邮箱" label-width="80px">
      <el-input v-model.trim="user.email" />
    </el-form-item>
    <el-form-item label="身份证号" label-width="80px">
      <el-input v-model.trim="user.email" />
    </el-form-item>
    <el-form-item label="个人简介" label-width="80px">
      <!-- <el-input v-model.trim="user.email" /> -->
      <el-input
        type="textarea"
        :rows="2"
        placeholder="请输入内容"
        v-model="user.textarea">
      </el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="submit">提交</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  props: {
    user: {
      type: Object,
      default: () => {
        return {
          name: '',
          email: '',
          textarea:''
        }
      }
    }
  },
  methods: {
    submit() {
      this.$message({
        message: 'User information has been updated successfully',
        type: 'success',
        duration: 5 * 1000
      })
    }
  }
}
</script>
